package com.crm.sys.dao;

import java.util.List;

import com.crm.sys.model.ApproveConfigure;
import com.crm.sys.model.ApproveConfigureItem;

public interface ApproveConfigureDao {
 
    int deleteByPrimaryKey(Integer id);

    int insertSelective(ApproveConfigure record);
 
    ApproveConfigure selectByPrimaryKey(String code);
 
    int updateByPrimaryKeySelective(ApproveConfigure record);
 
    int updateByPrimaryKeyWithBLOBs(ApproveConfigure record);
 
    int updateByPrimaryKey(ApproveConfigure record);
    
    /**
     * 获取列表
     * */
    public List<ApproveConfigure> getAllApproveConfigureList(ApproveConfigure ac);
    
    /**
     * 获取某一审批表中的所有审批员
     * */
    public List<ApproveConfigureItem> getApproveUserListByAcid(ApproveConfigureItem aci);
    
    /**
	 * 获取某一审批表中所有审批员个数
	 * */
	public int getApproveUserCount(ApproveConfigureItem aci);
	
	/**
	 * 添加审批员
	 * */
	public int insertApproveUser(ApproveConfigureItem aci);
	
	/**
	 * 修改审批员
	 * */
	public int updateApproveUser(ApproveConfigureItem aci);
	
	/**
	 * 根据条件获取审批员列表
	 * */
	public List<ApproveConfigureItem> getApproveUserChanegList(ApproveConfigureItem aci);
	
	/**
	 * 删除审批员
	 * */
	public int deleteApproveUser(ApproveConfigureItem aci);
	
}